﻿using System;
using System.Collections.Generic;
using System.Text;

namespace WinFormsApp1
{
    class User
    {
        //定义属性用于保存用户出拳结果
        public string FistName { get; set; }

        //描述用户出拳
        public int ShowFist(string msg)
        {
            FistName = msg;
            int result = 0;
            switch (FistName)
            {
                case "石头":
                    result = 1;
                    break;
                case "剪刀":
                    result = 2;
                    break;
                case "布":
                    result = 3;
                    break;
            }
            return result;
        }
    }
}
